home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1295 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: fix.uni-trier.de!not-for-mail
  2. From: hfrieden@fix.uni-trier.de (Hans-Joerg Frieden)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: BOOPSI doesn't react on the GA_RelRight tag...
  5. Date: 17 Jan 1996 20:17:57 GMT
  6. Organization: Universitaet Trier
  7. Message-ID: <4djlhl$512@news01.uni-trier.de>
  8. References: <4dgc3k$us@hasle.sn.no> <4dioh7$itl@news01.uni-trier.de>
  9. NNTP-Posting-Host: fix.uni-trier.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=US-ASCII
  12. Content-Transfer-Encoding: 7bit
  13. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  14.  
  15. Here's a code fragment I actually used in a program. It creates a gadget 
  16. of propgclass, which is in the border of the window. The window isn't 
  17. open at this time:
  18.  
  19.     prefs.Obj[GAD_XPOS] = NewObject(NULL, (STRPTR)"propgclass",
  20.     GA_ID,              GAD_XPOS,
  21.     GA_Left,            rw+gap,
  22.     GA_RelVerify,       TRUE,
  23.     GA_Immediate,       TRUE,
  24.     GA_RelBottom,       bh - gh + 2,
  25.     GA_RelWidth,        -gw - gap - IM(prefs.Obj[8])->Width
  26.                 - IM(prefs.Obj[7])->Width - rw - rw,
  27.     GA_Height,          gh - bh - bh - 2,
  28.     GA_BottomBorder,    TRUE,
  29.     PGA_Total,          1,
  30.     PGA_Visible,        1,
  31.     ICA_TARGET,         ICTARGET_IDCMP,
  32.     PGA_Freedom,        FREEHORIZ,
  33.     PGA_NewLook,        TRUE,
  34.     PGA_Borderless,     ((dri->dri_Flags & DRIF_NEWLOOK) &&
  35.                 dri->dri_Depth != 1),
  36.     TAG_DONE);
  37.     if (!prefs.Obj[GAD_XPOS]) return DisposeGadgets();
  38.  
  39. Hope this helps...
  40.  
  41. Regards, Hans-Joerg.
  42.  
  43. -- 
  44. Hans-Joerg Frieden   Schloss-Strasse 176   54293 Trier   Germany
  45. Private Mail to hfrieden@fix.uni-trier.de
  46. FTP-Admin Mail to ftpadmin@ftp.uni-trier.de
  47. Any Opinion expressed is completely my own, not those of my employers.
  48.